(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[890],{30217:function(e,l,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slugArray]]",function(){return t(34596)}])},34596:function(e,l,t){"use strict";t.r(l),t.d(l,{__N_SSG:function(){return lP},default:function(){return lF}});var n=t(39980),i=t(23780),o=t.n(i),r=t(2363),a=t(65811),s=t(45309),d=t(15428),u=t(99744),c=t(45675),v=t(93270),m=t(10213),p=t(5704),h=t(99635),g=t(89616),x=t(44270),f=t(88640),b=t(2106),j=t(48733);let w=e=>{let{isLastItem:l,LinkComponent:t,item:i}=e;if(!i.label)return(0,n.jsx)(n.Fragment,{});let o=t||"a",r=i.icon?(0,n.jsx)(b.J,{size:"xs",name:i.icon,title:i.label||i.icon}):i.label;return(0,n.jsx)(j.x,{size:"textSm",weight:"medium",color:"grey600",as:"li",className:"inline-flex items-center last:text-gray-400",children:l?r:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(o,{href:i.href,onClick:i.onClick,className:"hover:text-primary-900 inline-flex",title:i.label,children:r}),(0,n.jsx)(b.J,{size:"xs",name:"chevronRightIcon",className:"ml-2",title:i.label})]})})},y=e=>{let{items:l,LinkComponent:t,className:i,...o}=e;return l.length<2?(0,n.jsx)(n.Fragment,{}):(0,n.jsx)("nav",{className:(0,f.Z)("relative","after:bg-gradient-to-r after:from-transparent after:from-75% after:to-white","after:z-1 after:absolute after:right-0 after:top-0 after:h-full after:w-10","lg:after:content-none",i),...o,children:(0,n.jsx)("ol",{className:(0,f.Z)("no-scrollbar flex items-center gap-2 overflow-x-auto whitespace-nowrap","lg:flex-wrap"),children:l.map((e,i)=>(0,n.jsx)(w,{isLastItem:i===l.length-1,item:0===i?{...e,icon:"homeIcon"}:e,LinkComponent:t},i))})})};var N=t(73517),S=t(26516),C=t(80889);let R=e=>{let{breadcrumbs:l=[],...t}=e,i={itemListElements:l.filter((e,t)=>e.slug||t===l.length-1).map((e,l)=>({position:l+1,name:e.title,item:e.slug?"".concat(C.baseUrl).concat(e.slug):void 0}))};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.gR,{...i}),(0,n.jsx)(y,{LinkComponent:S.p,...t,items:l.map(e=>{let{slug:l,title:t}=e;return{label:t,href:l}})})]})};var I=t(23522),k=t(96049),P=t.n(k),F=t(19810),z=t(50696),_=t(25750),D=t(2200);function L(){let e=(0,c._)(["\n fragment SanitySeo on Seo {\n _id: slug {\n current\n }\n id: slug {\n current\n }\n title\n slug {\n current\n }\n description\n image {\n asset {\n _id\n assetId\n altText\n }\n }\n noindex\n nofollow\n ldJson {\n value\n }\n }\n"]);return L=function(){return e},e}(0,v.Ps)(L());let T=e=>{var l,t,i,o;let{seo:r,routingConfig:{canonicalSlug:a},defaultTitle:s,defaultTitleTemplate:d,defaultDescription:u,defaultOgImageId:c,defaultOgImageCrop:v=!0,defaultSeoImage:m}=e,{locale:p,asPath:h}=(0,g.useRouter)(),{brandName:x}=(0,F.d)(),{seo:f}=(0,z.r)(),{title:b,description:j,noindex:w,nofollow:y,ldJson:S,image:R}=r||{},I="".concat(C.baseUrl).concat(a).replace(/\/*$/,""),k=(null===(t=R||m)||void 0===t?void 0:null===(l=t.asset)||void 0===l?void 0:l._id)||c||(null==f?void 0:null===(o=f.defaultOgImage)||void 0===o?void 0:null===(i=o.asset)||void 0===i?void 0:i._id),L=k&&(0,_.NQ)({assetId:k,width:c&&v||!c?1200:void 0,height:c&&v||!c?630:void 0}),T=(0,D.zU)(h);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(N.PB,{title:(0,D.Ow)(b||s||"",T),defaultTitle:x,titleTemplate:d||(null==f?void 0:f.titleTemplate)||"%s | ".concat(x),description:(0,D.Ow)(j||u||"",T),noindex:w||!1,nofollow:y||!1,canonical:I,twitter:{cardType:"summary_large_image"},openGraph:{type:"website",url:I,locale:p,title:b||s,description:j||void 0,images:L?[{url:L,width:1200,height:630}]:void 0},robotsProps:w?{}:{maxSnippet:-1,maxImagePreview:"large",maxVideoPreview:-1}}),(S||[]).map((e,l)=>(0,n.jsx)(P(),{children:(0,n.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:(null==e?void 0:e.value)||""}})},l))]})};function M(){let e=(0,c._)(["\n query getModularPage($id: [ID!], $i18nLangFilter: StringFilter) {\n page: allModularPage(\n where: { _id: { in: $id }, i18nLang: $i18nLangFilter }\n sort: { _updatedAt: DESC }\n limit: 1\n ) {\n _id\n seo {\n ...SanitySeo\n }\n title\n breadcrumb\n sections {\n ...Sections\n }\n }\n }\n"]);return M=function(){return e},e}(0,v.Ps)(M());let A=e=>{var l;let{routingConfig:t}=e,{locale:i}=(0,g.useRouter)(),o=(0,m.ug)(i),{data:r}=(0,x.Ye)({variables:{id:(0,h.A0)(t.documentId),i18nLangFilter:o}}),a=null==r?void 0:null===(l=r.page)||void 0===l?void 0:l[0];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{seo:null==a?void 0:a.seo,routingConfig:t,defaultTitle:(null==a?void 0:a.title)||void 0}),(null==a?void 0:a.breadcrumb)&&(0,n.jsx)(p.W,{children:(0,n.jsx)(R,{breadcrumbs:t.breadcrumbs,className:"mt-5"})}),(0,n.jsx)(I.a,{sections:(null==a?void 0:a.sections)||[]})]})},$=e=>{let{routingConfig:l,initialSearchState:t,components:i}=e,{t:c}=(0,d.$G)(),{pageType:v,typename:m,slug:p}=l||{};(0,s.GN)({pageType:v},p);let h=(0,r.useMemo)(()=>({ModularPage:A,...i}),[i]),g=h[m];return g?(0,n.jsx)(a.H,{...t,children:(0,n.jsx)(u.T,{initialValue:{routingConfig:l},children:(0,n.jsx)(g,{routingConfig:l})})}):(0,n.jsx)(o(),{title:"".concat(c("Page not found")),statusCode:404,withDarkMode:!1})};var E=t(9797),O=t(87917),Z=t(72738);let H=e=>{let{items:l,title:t,listStyleType:i="disc",labelColor:o="inherit",...r}=e;return(null==l?void 0:l.length)?(0,n.jsxs)("div",{...r,children:[t&&(0,n.jsx)(j.x,{className:"mb-4",size:"textLg",weight:"medium",children:t}),(0,n.jsx)("ul",{className:(0,f.Z)({"list-disc pl-5":"disc"===i,"list-none":"none"===i}),children:l.map((e,l)=>{let{label:t,value:i}=e;return(0,n.jsxs)(j.x,{color:"grey700",as:"li",children:[t&&(0,n.jsxs)(j.x,{weight:"bold",as:"strong",color:o,children:[t,(0,n.jsx)("span",{children:": "})]}),(0,n.jsx)("span",{children:i})]},"".concat(t).concat(i).concat(l))})})]}):(0,n.jsx)(n.Fragment,{})};var W=t(81049),U=t(4980),q=t(47308),B=t(43560),V=t(35476),G=t(54264),X=t(13967);let J=e=>(0,X.Kn)(e)&&(0,V.HD)(null==e?void 0:e._type)&&"block"===e._type,Q=e=>{let{blocks:l,priorityKeys:t=[],acc:n=[]}=e;if(!l||!l.length)return n;for(let e of l)if(J(e))n.push(e);else if(e){let l=(0,X.JR)(e,t);for(let e in l){let i=l[e];Array.isArray(i)&&Q({blocks:i,priorityKeys:t,acc:n})}}return n};var K=t(14572),Y=t(89991),ee=t(94902),el=t(27795);let et=e=>{let{children:l,iconTitle:t,className:i,icon:o="clockIcon",...r}=e;return l?(0,n.jsx)("div",{className:(0,f.Z)("pt-4",i),...r,children:(0,n.jsxs)("div",{className:"border-primary relative rounded border px-4 pb-2 pt-5",children:[(0,n.jsx)("div",{className:"absolute left-1/2 top-0 inline-flex -translate-x-1/2 -translate-y-1/2 bg-white px-4",children:(0,n.jsx)(b.J,{size:"md",name:o,title:t,color:"primary600"})}),(0,n.jsx)(j.x,{align:"center",size:"textSm",color:"grey700",children:l})]})}):(0,n.jsx)(n.Fragment,{})};var en=t(12144),ei=t(55709),eo=t(44586);t(36617),t(63569);var er=t(54756);let ea=e=>{let{src:l,width:t,height:i,srcset:o,cropped:r,children:a,...s}=e;return(0,n.jsx)("a",{className:"photo-swipe-item",href:l,"data-pswp-width":t,"data-pswp-height":i,"data-pswp-srcset":o,"data-cropped":r?"true":void 0,...s,children:a})},es=e=>{switch(e){case"white":case"brand":return 1;default:return .8}},ed=e=>{switch(e){case"brand":return"pswp--brand-theme";case"white":return"pswp--white-theme";default:return""}},eu=e=>{let{theme:l="white",onSlideChange:i=()=>null,children:o,options:a,...s}=e,d=(0,r.useRef)(null),{mainClass:u,...c}=a||{};return(0,r.useEffect)(()=>{let e=new er.Z({gallery:d.current||void 0,children:"a.photo-swipe-item",pswpModule:()=>t.e(959).then(t.bind(t,71611)),mainClass:(0,f.Z)(ed(l),u),bgOpacity:es(l),...c,secondaryZoomLevel:e=>{let{initial:l,fill:t}=e;return Math.max(2.5*l,t)},tapAction:!1});return e.on("change",()=>{var l;return i({currentSlideIndex:(null==e?void 0:null===(l=e.pswp)||void 0===l?void 0:l.currIndex)||0})}),e.init(),()=>{null==e||e.destroy()}},[]),(0,n.jsx)("div",{...s,ref:d,children:o})};var ec=t(4260);let ev=e=>{let{children:l,fixedRatio:t=!0,size:i="sm",objectFit:o="cover",aspectRatio:r="1:1"}=e;return(0,n.jsx)("figure",{className:(0,f.Z)("[&>*]:block [&>*]:w-full",{cover:"[&>*]:object-cover bg-skeleton",contain:"[&>*]:object-contain"}[o],t?({"1:1":"[&>*]:aspect-square aspect-square","4:3":"[&>*]:aspect-4/3 aspect-4/3"})[r]:({auto:"[&>*]:h-full h-full",sm:"[&>*]:h-96 h-96"})[i]),children:l})},em=(0,r.forwardRef)((e,l)=>{let{children:t,fixedRatio:i=!0,aspectRatio:o="1:1",size:a="sm",objectFit:s="cover",afterSlider:d=(0,n.jsx)(n.Fragment,{}),...u}=e,c=(0,r.useRef)();(0,r.useImperativeHandle)(l,()=>c.current);let v=r.Children.map(t,e=>(0,r.isValidElement)(e)&&e.type===ev?(0,r.cloneElement)(e,{size:a,fixedRatio:i,objectFit:s,aspectRatio:i?o:""}):null),m=(null==v?void 0:v.length)||0;return m?(0,n.jsx)(ec.i,{ref:c,pagination:!0,arrows:!1,controlsOutline:!1,options:{disabled:m<=1,slides:{perView:1,origin:"center"}},afterSlider:d,...u,children:v}):(0,n.jsx)(n.Fragment,{})});em.displayName="Slideshow";var ep=t(7590);let eh=e=>{let{children:l}=e;return(0,n.jsx)(n.Fragment,{children:l})},eg=(0,r.forwardRef)((e,l)=>{var t;let{children:i,...o}=e,[a,s]=(0,r.useState)((null===(t=o.options)||void 0===t?void 0:t.initial)||0),d=(0,K.S)({minWidth:ep.md},!1),u=(0,r.useRef)();(0,r.useImperativeHandle)(l,()=>u.current);let c=r.Children.map(i,e=>r.isValidElement(e)&&e.type===eh?e:null),v=(null==c?void 0:c.length)||0;if(!v)return(0,n.jsx)(n.Fragment,{});let m=e=>()=>{var l;return null===(l=u.current)||void 0===l?void 0:l.moveToIdx(e,!1,{easing:()=>1})};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(em,{ref:u,...o,pagination:!d,rounded:d,arrows:!1,controlsOutline:!1,onSlideChanged:e=>{s(e.currentSlide),o.onSlideChanged&&o.onSlideChanged(e)},children:null==c?void 0:c.map((e,l)=>{var t;return(0,n.jsx)(ev,{children:"function"==typeof(null===(t=e.props)||void 0===t?void 0:t.children)?e.props.children({isThumbnail:!1,index:l}):e},l)})}),d&&v>1&&(0,n.jsx)("div",{className:"mt-4 grid grid-cols-[repeat(auto-fill,minmax(0,48px))] justify-center gap-3",children:null==c?void 0:c.map((e,l)=>{var t;let i=a===l;return(0,n.jsx)("button",{className:(0,f.Z)("relative cursor-pointer overflow-auto rounded border-0 transition-opacity duration-300","enabled:hover:opacity-100",i?(0,f.Z)("cursor-default opacity-100","after:border-primary after:absolute after:inset-0 after:rounded after:border-2"):"opacity-60"),type:"button",onClick:m(l),disabled:i,children:(0,n.jsx)("figure",{className:"bg-skeleton aspect-square [&>*]:aspect-square [&>*]:object-cover",children:"function"==typeof(null===(t=e.props)||void 0===t?void 0:t.children)?e.props.children({isThumbnail:!0,index:l}):e})},l)})})]})});eg.displayName="ThumbnailSlider";let ex=e=>{let{render:l,args:t,image:i}=e,o=l&&l(t);return(0,n.jsxs)(n.Fragment,{children:[(null==t?void 0:t.isThumbnail)&&(0,r.isValidElement)(i)?(0,r.cloneElement)(i,{sizes:"48px",width:48,height:48,priority:!1,fetchpriority:"low"}):i,o&&(0,n.jsx)("div",{className:(0,f.Z)("absolute left-auto right-2 top-2","flex h-auto w-auto flex-col items-end","gap-2 border-none"),children:o})]})},ef=e=>{let{labels:l}=e;return(0,n.jsx)("div",{className:"pointer-events-none absolute left-0 top-2",children:(0,n.jsx)(eo.R,{labels:l})})},eb=e=>{let{thumbnailProps:l,overlayRender:t,image:i,zoomable:o,isCroppedImage:r}=e,a=(0,n.jsx)(ex,{render:t,args:l,image:i.component});return o&&!l.isThumbnail?(0,n.jsx)(ea,{...i.metadata,cropped:r,children:a}):(0,n.jsx)(n.Fragment,{children:a})},ej=e=>{let{onSlideChange:l,theme:t,zoomable:i,children:o,photoSwipeOptions:r,...a}=e;return i?(0,n.jsx)(eu,{onSlideChange:l,theme:t,options:r,...a,children:o}):(0,n.jsx)(n.Fragment,{children:o})},ew=(0,r.forwardRef)((e,l)=>{let{images:t,renderGalleryOverlayTopRight:i,labels:o,zoomable:a,theme:s,photoSwipeOptions:d,...u}=e,c=(0,r.useRef)();(0,r.useImperativeHandle)(l,()=>c.current);let v=a&&(0,n.jsx)("div",{className:(0,f.Z)("pointer-events-none absolute","bottom-4 right-4 flex h-9 w-9","items-center justify-center","rounded bg-white shadow"),children:(0,n.jsx)(b.J,{title:"Zoom",name:"zoomInIcon",width:"20",height:"20",color:"grey500"})});return(0,n.jsx)(ej,{zoomable:a,onSlideChange:e=>{var l;let{currentSlideIndex:t}=e;null===(l=c.current)||void 0===l||l.moveToIdx(t,!1,{easing:()=>1})},theme:s,photoSwipeOptions:d,children:(0,n.jsx)(eg,{...u,afterSlider:(0,n.jsxs)(n.Fragment,{children:[v,(0,n.jsx)(ef,{labels:o})]}),ref:c,children:null==t?void 0:t.map((e,l)=>(0,n.jsx)(eh,{children:l=>(0,n.jsx)(eb,{thumbnailProps:l,overlayRender:i,image:e,zoomable:a,isCroppedImage:!0})},l))})})});ew.displayName="SliderWithThumbnails";let ey=(0,r.forwardRef)((e,l)=>{let{images:t,zoomable:i,renderGalleryOverlayTopRight:o,labels:a,theme:s,photoSwipeOptions:d,...u}=e,c=(0,r.useRef)();return(0,r.useImperativeHandle)(l,()=>c.current),(0,n.jsx)(ej,{zoomable:i,onSlideChange:e=>{var l;let{currentSlideIndex:t}=e;null===(l=c.current)||void 0===l||l.moveToIdx(t,!1,{easing:()=>1})},theme:s,photoSwipeOptions:d,children:(0,n.jsx)(em,{...u,ref:c,afterSlider:(0,n.jsx)(ef,{labels:a}),children:null==t?void 0:t.map((e,l)=>(0,n.jsx)(ev,{children:(0,n.jsx)(eb,{thumbnailProps:{isThumbnail:!1,index:l},overlayRender:o,image:e,zoomable:i,isCroppedImage:!0})},l))})})});ey.displayName="SliderWithBullets";let eN=e=>{let{navigation:l,objectFit:t,fixedRatio:i,zoomable:o=!0,theme:a="white",photoSwipeOptions:s,images:d,renderGalleryOverlayTopRight:u,labels:c}=e,v=(0,r.useRef)();return"thumbnails"===l?(0,n.jsx)(ew,{ref:v,images:d,objectFit:t,fixedRatio:i,zoomable:o,renderGalleryOverlayTopRight:u,labels:c,theme:a,photoSwipeOptions:s}):(0,n.jsx)(ey,{ref:v,images:d,objectFit:t,fixedRatio:i,zoomable:o,renderGalleryOverlayTopRight:u,labels:c,theme:a,photoSwipeOptions:s})};var eS=t(46677),eC=t(25369),eR=t(87771),eI=t(50610),ek=t(37842),eP=t(59854);let eF=(0,r.forwardRef)((e,l)=>{var t;let{additionalPriceWidget:i,afterCta:o,compareAtPrice:a,images:s,description:d,gallerySettings:u={navigation:"bullets",objectFit:"cover",fixedRatio:!0,zoomable:!0},loading:c,maxQuantity:v=10,minQuantity:m=1,quantity:p,onCtaClick:h,onQuantityChange:g,orderDetails:x,price:b,productDetails:w,quantityDisabled:y=!1,ctaLoading:N,ctaDisabled:S,rating:C,variantSelectors:R,shipmentTimerMessage:I,shipmentTimerTitle:k,subtitle:P,title:F,labels:z,..._}=e,D=(0,r.useId)(),L=(0,r.useRef)(null);(0,r.useImperativeHandle)(l,()=>({ctaBtnRef:L.current}));let T=((null==C?void 0:C.value)||0)>0;return(0,n.jsxs)("div",{..._,children:[(0,n.jsxs)("div",{className:"after:lg:clear-both after:lg:table",children:[(0,n.jsxs)("div",{className:"mb-5 lg:float-right lg:w-1/2 lg:pl-8",children:[(0,n.jsx)(j.x,{color:"grey900",weight:"semibold",size:"displayXs",className:"mb-2",children:F}),P&&(0,n.jsx)(j.x,{color:"grey700",size:"textMd",children:P}),(T||c)&&(0,n.jsx)("div",{className:"flex items-center gap-6",children:c?(0,n.jsx)(ek.O,{className:"min-h-6 mt-5 w-32"}):T&&(0,n.jsxs)("div",{className:(0,f.Z)("mt-5 flex items-center gap-2",{"cursor-pointer":!!(null==C?void 0:C.onClick)}),role:"link",tabIndex:0,title:null==C?void 0:null===(t=C.value)||void 0===t?void 0:t.toString(),onClick:()=>(null==C?void 0:C.onClick)&&(null==C?void 0:C.onClick()),onKeyDown:()=>(null==C?void 0:C.onClick)&&(null==C?void 0:C.onClick()),children:[(0,n.jsx)(eP.t,{value:null==C?void 0:C.value,size:"xs",labels:{of:null==z?void 0:z.of}}),(null==C?void 0:C.countLabel)&&(0,n.jsx)(j.x,{color:"grey500",size:"textSm",as:"span",children:null==C?void 0:C.countLabel})]})})]}),(0,n.jsx)("div",{className:(0,f.Z)(ei.L,"lg:float-left lg:w-1/2"),children:(0,n.jsx)(eN,{images:s,...u})}),(0,n.jsxs)("div",{className:"lg:float-right lg:w-1/2 lg:pl-8",children:[(0,n.jsx)(eI.j,{price:b,compareAtPrice:a,compareAtPriceLabel:(null==z?void 0:z.compareAtPrice)||"It was before",priceLabel:(null==z?void 0:z.price)||"",size:"lg",loading:c,className:"my-5 lg:mt-0"}),(0,n.jsx)("div",{className:"mb-5",children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ek.O,{className:"min-h-5 max-w-20 mb-2 w-full"}),(0,n.jsx)(ek.O,{className:"min-h-12 max-w-60 mb-5 w-full"})]}):Array.isArray(R)?R.map((e,l)=>(0,n.jsx)("div",{className:(0,f.Z)(l!==R.length-1&&"mb-5"),children:e},l)):R||null}),(g||h)&&(0,n.jsxs)("div",{className:"flex items-end gap-3",children:[g&&(0,n.jsxs)("div",{className:"max-w-28 w-full",children:[(0,n.jsx)(eC.A,{htmlFor:D,children:(null==z?void 0:z.quantity)||"Quantity"}),(0,n.jsx)(eS.e,{min:m,max:v>0?v:1,id:D,labels:{rightIconTitle:null==z?void 0:z.increaseButton,leftIconTitle:null==z?void 0:z.decreaseButton},readOnly:!0,disabled:c||y,onChange:e=>g(e),size:"xl",value:p})]}),h&&(0,n.jsx)(en.zx,{ref:L,type:"button",onClick:h,progress:N||c,disabled:S||N||c,size:"xl",fullWidth:!0,children:(null==z?void 0:z.cta)||"Add to cart"})]}),!!o&&(0,n.jsx)("div",{className:"mt-5",children:o}),I&&(0,n.jsx)(et,{iconTitle:k,className:"mt-5",children:I}),x&&(0,n.jsx)(eR.j,{items:x,className:"mt-5"}),i&&(0,n.jsx)("div",{className:"mt-5 flex flex-col gap-4",children:i}),w&&(0,n.jsx)(H,{items:w,listStyleType:"none",labelColor:"primary600",className:"mt-5"}),d&&(0,n.jsx)(j.x,{color:"grey700",size:"textMd",className:"mt-5",children:d})]})]}),(0,n.jsx)("hr",{className:"my-5 h-0 border-t border-solid border-gray-200"})]})});eF.displayName="ProductHead";var ez=t(20136),e_=t(65990),eD=t(64818),eL=t(42426),eT=t(69036),eM=t(89992),eA=t.n(eM),e$=t(58254),eE=t.n(e$),eO=t(31616),eZ=t.n(eO),eH=t(56878),eW=t(88232),eU=t(16652),eq=t(72316),eB=t(52836);let eV=(e,l)=>{let[t,n]=(0,r.useState)(!0),[i,o]=(0,r.useState)(),[a,s]=(0,r.useState)(),d=(0,r.useMemo)(()=>({loading:t,data:i,error:a}),[t,i,a]);return(0,r.useEffect)(()=>{(0,e_.K)()||(0,eD.ve)(e,l).then(o).catch(s).finally(()=>n(!1))},[]),d},eG=e=>{let{clientId:l,className:t,amount:i=0,placement:o="credit-promotion-badge",environment:a="production",locale:s=q.$b,theme:d="custom",...u}=e;if(!l)return(0,n.jsx)(n.Fragment,{});let c={"credit-promotion-badge":"min-h-9","credit-promotion-auto-size":"min-h-6","top-strip-promotion-auto-size":"min-h-10","top-strip-promotion-badge":"min-h-11","footer-promotion-auto-size":"min-h-12","info-page":"min-h-screen"}[o];(0,r.useEffect)(()=>{var e,l;null===(l=window.Klarna)||void 0===l||null===(e=l.OnsiteMessaging)||void 0===e||e.refresh()},[s,i,o,d]);let{loading:v,data:m}=eV("https://osm.klarnaservices.com/lib.js",{"data-client-id":l,"data-environment":a});return(0,r.useEffect)(()=>{var e,l,t,n;m&&(null===(l=window.Klarna)||void 0===l||null===(e=l.OnsiteMessaging)||void 0===e||e.on("informationalModalOpened",()=>document.documentElement.classList.add("overflow-hidden")),null===(n=window.Klarna)||void 0===n||null===(t=n.OnsiteMessaging)||void 0===t||t.on("informationalModalClosed",()=>document.documentElement.classList.remove("overflow-hidden")))},[m]),(0,n.jsxs)("div",{...u,className:(0,f.Z)(c,t),children:[v&&(0,n.jsx)(ek.O,{className:c}),(0,n.jsx)("klarna-placement",{"data-key":o,"data-locale":s,"data-purchase-amount":(0,eB.w)(i),"data-theme":d})]})},eX=e=>{let{clientId:l="526f95d9-f337-5e47-8d8d-59e926a712d6",environment:t="production",...i}=e,{locale:o}=(0,g.useRouter)();return(0,n.jsx)(eG,{...i,clientId:l,environment:t,locale:(0,B.sX)(o)})};var eJ=t(24700);let eQ=e=>{let{clientId:l,amount:t,placement:i,className:o,errorMessage:r="Pagabile a rate con PayPal",currency:a="EUR",layout:s="text",logoType:d="primary",logoPosition:u="left",textColor:c="black",textSize:v=12,textAlign:m="left",color:p="blue",ratio:h="1x1",locale:g,...x}=e;if(!l)return(0,n.jsx)(n.Fragment,{});let w=eJ.stringify({"client-id":l,"enable-funding":"paylater",currency:a,components:"messages,buttons",...g&&{locale:(0,B.J8)({locale:g,separator:q.dP})}},!0),y={"1x1":"min-h-72","1x4":"min-h-80","8x1":"min-h-20","20x1":"min-h-24",default:"min-h-6"}["flex"===s&&h||"default"],{loading:N,error:S}=eV("https://www.paypal.com/sdk/js".concat(w));return(0,n.jsxs)("div",{...x,className:(0,f.Z)(y,o),children:[S&&(0,n.jsxs)("div",{className:"flex items-center gap-2",children:[(0,n.jsx)(b.J,{name:"payPalLogoIcon",title:"PayPal"}),(0,n.jsx)(j.x,{as:"p",children:r})]}),N&&(0,n.jsx)(ek.O,{className:y}),(0,n.jsx)("div",{"data-pp-message":!0,"data-pp-amount":t,"data-pp-placement":i,"data-pp-style-layout":s,"data-pp-style-logo-type":d,"data-pp-style-logo-position":u,"data-pp-style-text-color":c,"data-pp-style-text-size":v,"data-pp-style-text-align":m,"data-pp-style-color":p,"data-pp-style-ratio":h,"data-pp-currency":a})]})};var eK=t(5806);let eY=e=>{let{clientId:l=eK.env.NEXT_PUBLIC_PAYPAL_SDK_CLIENT_ID||"",...t}=e,{locale:i}=(0,g.useRouter)();return(0,n.jsx)(eQ,{...t,clientId:l,locale:(0,B.sX)(i)})};var e0=t(97044);let e1=e=>e instanceof Date&&!isNaN(e.getTime()),e2=e=>(0,V.HD)(e)&&e1(new Date(e));var e4=t(32498);let e6=e=>{let{className:l,...t}=e;return(0,n.jsx)(en.zx,{...t,className:(0,f.Z)("!p-2",l),appearance:"secondary",size:"sm",type:"button",children:(0,n.jsx)(b.J,{name:"xIcon",title:"Close",color:"grey700"})})},e5=e=>{let{title:l,children:t,size:i="sm",open:o=!1,centered:a=!0,fullscreen:s=!1,noPadding:d=!1,noCloseButton:u=!1,contentCentered:c=!1,className:v,onClose:m,onBackdropClick:p=m,...h}=e,{disableScroll:g,enableScroll:x}=(0,e4.P)(),b=(0,r.useId)();if((0,r.useEffect)(()=>{let e=e=>{("Escape"===e.key||"Esc"===e.key)&&(e.preventDefault(),m())};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[]),(0,r.useEffect)(()=>(o?g():x(),()=>{o&&x()}),[o]),!o)return(0,n.jsx)(n.Fragment,{});let w=l?"modal-title-".concat(b):void 0,y=t?"modal-description-".concat(b):void 0;return(0,n.jsx)("div",{...h,className:(0,f.Z)("fixed inset-0 z-50 h-full w-full bg-black/60 sm:overflow-y-auto",v),"aria-hidden":"true",onClick:e=>{let{target:l}=e;l.closest(".js-modal-content")||p()},children:(0,n.jsx)("div",{role:"alertdialog","aria-labelledby":w,"aria-describedby":y,className:(0,f.Z)("h-inherit relative",!s&&"sm:h-auto sm:min-h-full sm:px-4",a&&!s&&"sm:flex sm:items-center sm:justify-center"),children:(0,n.jsxs)("div",{className:(0,f.Z)("js-modal-content","h-inherit w-full overflow-y-auto overflow-x-hidden bg-white",c&&"flex flex-col justify-center",!d&&"p-4",!s&&(0,f.Z)("sm:mx-auto sm:my-4 sm:h-auto sm:rounded",{none:"",sm:"sm:max-w-screen-sm",md:"sm:max-w-screen-md",lg:"sm:max-w-screen-lg",xl:"sm:max-w-screen-xl"}[i])),children:[l&&(0,n.jsxs)("header",{className:(0,f.Z)("flex items-center justify-between gap-2 shadow",d?"p-4":"-mx-4 mb-4 px-4 pb-4"),children:[(0,n.jsx)(j.x,{color:"grey700",size:"textXl",weight:"bold",id:w,children:l}),!u&&(0,n.jsx)(e6,{onClick:m})]}),!l&&!u&&(0,n.jsx)(e6,{onClick:m,className:(0,f.Z)("z-1 sticky float-right self-end",d?"right-4 top-4":"top-0")}),(0,n.jsx)("div",{className:c?"my-auto":void 0,id:y,children:t})]})})})},e8=e=>{var l,t,i,o,a,s,d;let{average:u,reviews:c,trustCertificateUrl:v,generalTermsOfUseUrl:m,locale:p=q.$b,labels:h,onShowMore:g,loading:x,children:f,...b}=e;if(!c||!c.length)return(0,n.jsx)(n.Fragment,{});let[w,y]=(0,r.useState)(!1),N=Number(u.rate.toFixed(1));return(0,n.jsxs)("div",{...b,children:[(0,n.jsxs)("div",{className:"flex flex-col items-center justify-between lg:flex-row",children:[(0,n.jsx)(j.x,{color:"grey900",size:"displaySm",weight:"semibold",className:"my-2 flex items-center",children:(null==h?void 0:h.ratings)||"Ratings"}),(0,n.jsxs)("div",{className:"my-2 ml-2 flex flex-col items-center",children:[(0,n.jsxs)(j.x,{color:"grey900",size:"displaySm",weight:"bold",grow:!0,children:[N,"/5"]}),(0,n.jsx)(eP.t,{value:N}),(0,n.jsx)(j.x,{color:"grey900",size:"textMd",children:(null==h?void 0:h.reviews)||"".concat(c.length," Reviews")})]}),(0,n.jsxs)("div",{className:"my-2 ml-2 flex flex-col items-center lg:items-start",children:[(0,n.jsx)("img",{src:"https://cl.avis-verifies.com/it/widget4/tagjs/netreviews-logo-it.png",loading:"lazy",alt:"Verified Reviews Logo",width:226,height:35}),v&&(0,n.jsx)("a",{href:v,target:"_blank",rel:"noopener noreferrer",className:"text-sm font-semibold text-gray-700",children:(null==h?void 0:h.seeTrustCertificate)||"See Trust Certificate"}),(0,n.jsx)(en.zx,{type:"button",appearance:"secondary",variant:"link",size:"sm",rightIconName:"helpCircleIcon",onClick:()=>y(!0),children:(null==h?void 0:h.reviewBeingAudited)||"Review being audited"}),(0,n.jsx)(e5,{open:w,onClose:()=>y(!1),children:(0,n.jsxs)(j.x,{color:"grey900",size:"textMd",children:[(null==h?void 0:null===(l=h.modal)||void 0===l?void 0:l.line1)||"For more information about the features of the verification performed on reviews and the possibility of contacting the author of the review, please refer to our website ",m?(0,n.jsx)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"underline",children:"GCU"}):"GCU",".",(0,n.jsx)("br",{}),(null==h?void 0:null===(t=h.modal)||void 0===t?void 0:t.line2)||"No compensation was offered in exchange for reviews.",(0,n.jsx)("br",{}),(null==h?void 0:null===(i=h.modal)||void 0===i?void 0:i.line3)||"Reviews are published and retained for a duration of five years.",(0,n.jsx)("br",{}),(null==h?void 0:null===(o=h.modal)||void 0===o?void 0:o.line4)||"- Reviews are not editable: If a customer wishes to edit their review, they must contact Verified Reviews to delete the existing review and post a new one, they must contact Verified Reviews to delete the existing review and post a new one.",(0,n.jsx)("br",{}),(null==h?void 0:null===(a=h.modal)||void 0===a?void 0:a.line5)||"Here is the list of ",m?(0,n.jsx)("a",{href:m,target:"_blank",rel:"noopener noreferrer",className:"underline",children:(null==h?void 0:null===(s=h.modal)||void 0===s?void 0:s.reasonsForCancelling)||"reasons for cancelling"}):(null==h?void 0:null===(d=h.modal)||void 0===d?void 0:d.reasonsForCancelling)||"reasons for cancelling",".",(0,n.jsx)("br",{})]})})]})]}),(0,n.jsx)("div",{className:"mt-9",children:c.map((e,l)=>(0,n.jsxs)("div",{className:"mt-2",children:[(0,n.jsx)(j.x,{color:"grey900",size:"textLg",weight:"semibold",children:e.name}),(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)(eP.t,{value:e.rate}),(0,n.jsxs)(j.x,{color:"grey900",size:"textLg",className:"ml-2",children:[e.rate,"/5"]})]}),(0,n.jsx)(j.x,{color:"grey900",size:"textLg",children:e.review}),(0,n.jsxs)(j.x,{color:"grey900",size:"textSm",className:"my-4",children:[(null==h?void 0:h.publishedOn)||"Published on"," ",e2(null==e?void 0:e.publishDate)?new Date(e.publishDate).toLocaleDateString(p):e.publishDate]}),lg(c.length),children:(null==h?void 0:h.showMoreReviews)||"Show more reviews"}),f]})};var e3=t(5806);function e9(){let e=(0,c._)(["\n query GetVerifiedReviews(\n $product: String!\n $websiteId: String!\n $platform: String!\n $limit: Int\n $offset: Int\n $sort: String\n ) {\n verifiedReviews: verifiedReviews(\n product: $product\n websiteId: $websiteId\n platform: $platform\n offset: $offset\n limit: $limit\n order: $sort\n ) {\n reviews {\n firstname\n lastname\n publishDate\n rate\n review\n reviewId\n }\n average {\n rate\n count\n }\n }\n }\n"]);return e9=function(){return e},e}(0,v.Ps)(e9());let e7=e=>{let{firstname:l,lastname:t,anonymousLabel:n}=e,i="".concat((0,V.Ps)((l||"").toLowerCase())," ").concat((0,V.Ps)((t||"").toLowerCase())).trim();return["anonymous anonymous","anonymous a","a anonymous","a a","anonymous","a"].includes(i.toLowerCase())?n:i},le=e=>{let{productId:l,trustCertificateUrl:t,generalTermsOfUseUrl:i,websiteId:o=e3.env.NEXT_PUBLIC_VERIFIED_REVIEWS_ID,initialReviews:a=15,additionalReviews:s=5,sort:u="date_desc"}=e;if(!o||!l)return(0,n.jsx)(n.Fragment,{});let[c,v]=(0,r.useState)(!1),{t:m}=(0,d.$G)(),{locale:p}=(0,g.useRouter)(),h=(0,B.sX)(p),f=(0,B.Ke)(h),{data:b,error:w,loading:y,fetchMore:N}=(0,x.i7)({variables:{product:l,websiteId:o,platform:f,...a?{limit:a}:{},...u?{sort:u}:{}},notifyOnNetworkStatusChange:!0});if(w)return(0,n.jsx)(n.Fragment,{});let{reviews:S,average:C}=(null==b?void 0:b.verifiedReviews)||{},R=(null==S?void 0:S.map(e=>({name:e7({firstname:(null==e?void 0:e.firstname)||"",lastname:(null==e?void 0:e.lastname)||"",anonymousLabel:m("Anonymous")}),publishDate:(null==e?void 0:e.publishDate)||"",rate:(null==e?void 0:e.rate)||0,review:(null==e?void 0:e.review)||"",reviewId:(null==e?void 0:e.reviewId)||""})))||[],I={rate:(null==C?void 0:C.rate)||0,count:(null==C?void 0:C.count)||0};return(0,n.jsx)(e8,{reviews:R,average:I,trustCertificateUrl:t,generalTermsOfUseUrl:i,locale:h,labels:{ratings:m("Ratings"),reviews:m("Reviews",{count:I.count||0}),seeTrustCertificate:m("verifiedReviews.seeTrustCertificate"),reviewBeingAudited:m("verifiedReviews.reviewBeingAudited"),showMoreReviews:m("Show more reviews"),publishedOn:m("Published on"),modal:{line1:m("verifiedReviews.modal.line1"),line2:m("verifiedReviews.modal.line2"),line3:m("verifiedReviews.modal.line3"),line4:m("verifiedReviews.modal.line4"),line5:m("verifiedReviews.modal.line5"),reasonsForCancelling:m("verifiedReviews.modal.reasonsForCancelling")}},onShowMore:R.length{v(!1),N({variables:{offset:e,limit:s},updateQuery:(e,l)=>{var t,n;let{fetchMoreResult:i}=l;return i?{verifiedReviews:{...e.verifiedReviews,reviews:[...(null==e?void 0:null===(t=e.verifiedReviews)||void 0===t?void 0:t.reviews)||[],...(null==i?void 0:null===(n=i.verifiedReviews)||void 0===n?void 0:n.reviews)||[]]}}:e}}).catch(()=>v(!0))}:void 0,loading:y,className:"mb-5 mt-9",children:c?(0,n.jsx)(j.x,{color:"error500",className:"mt-2",weight:"semibold",size:"textSm",children:m("verifiedReviews.errorMessage")}):void 0})};var ll=t(36021),lt=t(62970),ln=t(43060);let li=e=>{let{variants:l,defaultVariantId:t}=e,{asPath:n,isReady:i,query:o,replace:r,pathname:a}=(0,g.useRouter)(),{search:s,hash:d}=(0,ln.e)(n),{variantId:u}=eJ.parse(s),c=u||t,v=null==l?void 0:l.find(e=>{let{id:l}=e;return(null==l?void 0:l.toString())===(null==c?void 0:c.toString())});return{selectedVariant:v,setSelectedVariantId:e=>{if(!i)return;let l={...o};e!==t?l={...l,variantId:e}:delete l.variantId,r({pathname:a,query:l,hash:d},void 0,{shallow:!0})}}};var lo=t(7005),lr=t(36449);function la(){let e=(0,c._)(["\n query getRelatedProducts(\n $categoryId: ID!\n $productId: ID!\n $i18nLangFilter: StringFilter\n ) {\n relatedProducts: allProduct(\n where: {\n _: { references: $categoryId }\n _id: { neq: $productId }\n i18nLang: $i18nLangFilter\n }\n sort: { _updatedAt: DESC }\n limit: 10\n ) {\n ...Product\n }\n }\n"]);return la=function(){return e},e}(0,v.Ps)(la());let ls=(e,l,t)=>(null==t?void 0:t.id)&&(null==l?void 0:l.id)&&t.id!==l.id?{variant:l,url:"".concat(C.baseUrl).concat(e.canonicalSlug,"?variantId=").concat(null==l?void 0:l.id)}:{variant:t,url:"".concat(C.baseUrl).concat(e.canonicalSlug)},ld=e=>{var l,t,n,i;let{url:o,brandName:r,page:a,variant:s,variantDetails:d,isOutOfStock:u,additionalSchemaMarkup:c,priceInMinorUnits:v}=e;return{productName:(null==a?void 0:a.title)||"",description:(null==a?void 0:null===(n=a.sections)||void 0===n?void 0:null===(t=n.flatMap(e=>Q({blocks:(null==e?void 0:e.blockContentRaw)||[],priorityKeys:["title"]})))||void 0===t?void 0:null===(l=t.map(e=>(0,eW.Ml)({blocks:[e]})))||void 0===l?void 0:l.join("\n"))||"",url:o,manufacturerName:r,images:(null==s?void 0:null===(i=s.gallery)||void 0===i?void 0:i.map(e=>{var l;return(null==e?void 0:null===(l=e.asset)||void 0===l?void 0:l.url)||""}).filter(Boolean))||[],brand:r,sku:"".concat(null==s?void 0:s.id),offers:{url:o,priceCurrency:"EUR",price:((v?(((null==s?void 0:s.price)||0)/100).toFixed(2):null==s?void 0:s.price)||0).toString(),seller:{name:r},availability:"https://schema.org/".concat(u?"OutOfStock":"InStock"),itemCondition:"https://schema.org/NewCondition"},mpn:(null==s?void 0:s.minSanCode)||void 0,...(null==d?void 0:d.rating)||(null==d?void 0:d.ratingCount)?{aggregateRating:{ratingValue:null==d?void 0:d.rating,ratingCount:null==d?void 0:d.ratingCount}}:{},...c}},lu=e=>{let{shortDescriptionRaw:l}=e;return(0,n.jsx)(n.Fragment,{children:l&&(0,n.jsx)("div",{className:"mt-5",children:(0,n.jsx)(eW.sU,{blocks:l})})})},lc=e=>{var l,t,i,a,s,u,c,v,h,f,b,j,w,y,S;let{additionalSchemaMarkup:C,children:k,gallerySettings:P,getRelatedProducts:D,getVariants:L,Hit:M,imagePlaceholderMetadata:A,outOfStock:$,pickGalleryFromVariant:E=!0,priceInMinorUnits:O=!1,productData:Z,productHeadProps:H,productLoading:q,productError:V,translate:G,renderProductInfoDetails:X=()=>[],renderVariantSelector:J=()=>(0,n.jsx)(n.Fragment,{}),renderAdditionalOrderDetails:Q,routingConfig:et,seoDescription:en,seoImage:ei}=e,{locale:eo}=(0,g.useRouter)(),{brandName:er}=(0,F.d)(),{product:ea,label:es}=(0,z.r)(),{t:ed}=(0,d.$G)(),eu=(0,m.ug)(eo),ec=null==Z?void 0:Z.page,ev=null!==(y=null==ea?void 0:ea.skipAddToCartFeedback)&&void 0!==y&&y;if(V||!ec||!Z)return(0,n.jsx)(o(),{title:"".concat(ed("Product not found")),statusCode:404,withDarkMode:!1});let em=null==ea?void 0:null===(l=ea.gallery)||void 0===l?void 0:l.navigation,eh=(null==ea?void 0:ea.orderDetails)||[],eg=null===(S=null==ea?void 0:ea.quantitySelector)||void 0===S||S,ex=(null==ea?void 0:ea.payWithKlarna)||!1,ef=(null==ea?void 0:ea.payWithPayPal)||!1,{withVerifiedReviews:eb,additionalReviews:ej,initialReviews:ew,generalTermsOfUseUrl:ey,trustCertificateUrl:eN}=(null==ea?void 0:ea.verifiedReviewsConfig)||{},{addLines:eS,cartLoading:eC,mutationLoading:eR}=(0,lt.j)({skipAddToCartFeedback:ev}),[eI,ek]=(0,r.useState)(1),eP=(null==es?void 0:es.shipmentTimerTextRaw)||null,eM=L?L({...Z,page:ec}):[],e$=(null===(t=ec?.store)||void 0===t?void 0:t.options)||[],eO=(0,W.gR)(eM),{selectedVariant:eB,setSelectedVariantId:eV}=li({variants:eM,defaultVariantId:null==eO?void 0:eO.id}),[eG,eJ]=(0,r.useState)(eZ()({option1:null==eB?void 0:eB.option1,option2:null==eB?void 0:eB.option2,option3:null==eB?void 0:eB.option3},e=>null===e)),{variant:eQ,url:eK}=ls(et,eB,eO),{price:e1,compareAtPrice:e2}=(0,lo.Z)({selectedVariant:eB,priceInMinorUnits:O,locale:(0,B.sX)(eo)}),e4="boolean"==typeof $?$:(0,lr.h)({variant:eB}),e6=(0,e_.K)()?"0px":(0,eD.jL)("--header-height")||"0px",e5=(0,K.S)({minWidth:ep.lg}),[e8,e3]=(0,eH.YD)({initialInView:!0,rootMargin:"-".concat(e6," 0px 100% 0px"),skip:e5||e4||!eO}),e9=eO&&!e3,e7=et.breadcrumbs,ln=(null==e7?void 0:e7.slice(1,-1).map(e=>e.slug||""))||[];(0,r.useEffect)(()=>{let e=eA()(eM,eG||void 0);e&&e.id&&(null==eB?void 0:eB.id)&&e.id!==(null==eB?void 0:eB.id)&&eV(e.id.toString())},[eG]),(0,r.useEffect)(()=>{if(ec&&e1&&eB){var e;(0,ll.kR)({productTitle:(null==ec?void 0:ec.title)||"",variantTitle:eB.title||"",variantId:(null===(e=eB.id)||void 0===e?void 0:e.toString())||"",price:e1,compareAtPrice:e2,brand:er,categories:ln})}},[ec,eB]);let la={src:"/product-placeholder.svg",width:1024,height:768,...A},lc=E?null==eB?void 0:eB.gallery:null==ec?void 0:ec.images,lv=(null==lc?void 0:lc.length)?lc.filter(e=>null==e?void 0:e.asset).map((e,l)=>{var t,i,o,r,a;let s=null==e?void 0:e.alt,{dimensions:d}=(null==e?void 0:null===(t=e.asset)||void 0===t?void 0:t.metadata)||{},u=null!==(o=null==d?void 0:d.width)&&void 0!==o?o:la.width,c=null!==(r=null==d?void 0:d.height)&&void 0!==r?r:la.height,v=null!==(a=null==e?void 0:null===(i=e.asset)||void 0===i?void 0:i.url)&&void 0!==a?a:la.src;return{component:(0,n.jsx)(eU.R,{source:e,alt:s||"".concat(null==ec?void 0:ec.title," - ").concat(l+1),sizes:{"0px":"100vw",[ep.md]:"80vw",[ep.lg]:"40vw",[ep.xl]:"512px"},priority:0===l,className:"absolute inset-0 aspect-square h-full w-full object-cover"},l),metadata:{src:v,width:u,height:c,srcset:(0,_.IE)({source:e,sizes:[256,384,475,720,828,1080,1170,1284,1903,2880]})}}}):[{component:(0,n.jsx)(eq.f,{alt:null==ec?void 0:ec.title,aspectRatio:"1/1",sizes:{"0px":"100vw",[ep.md]:"80vw",[ep.lg]:"40vw",[ep.xl]:"512px"},className:"object-cover"},0),metadata:la}],[lm,lp]=(0,Y.v)({offset:parseInt(e6,10)+20}),lh=null==ec?void 0:null===(i=ec.variantDetails)||void 0===i?void 0:i.find(e=>{var l;return(null==e?void 0:e.shopifyVariantId)===(null==eB?void 0:null===(l=eB.id)||void 0===l?void 0:l.toString())}),lg={value:(null==lh?void 0:lh.rating)||0,count:(null==lh?void 0:lh.ratingCount)||0,countLabel:"".concat(ed("Reviews",{count:"string"==typeof(null==lh?void 0:lh.ratingCount)?parseInt(lh.ratingCount,10):(null==lh?void 0:lh.ratingCount)||0})),onClick:lm},lx=ld({page:ec,url:eK,brandName:er,variant:eQ,variantDetails:lh,isOutOfStock:e4,additionalSchemaMarkup:C,priceInMinorUnits:O}),lf=null==ec?void 0:null===(s=ec.categories)||void 0===s?void 0:null===(a=s[0])||void 0===a?void 0:a._id,lb=null==ec?void 0:null===(u=ec.relatedProducts)||void 0===u?void 0:u.products;if((!lb||0===lb.length)&&lf&&(null==ec?void 0:ec._id)){let{loading:e,error:l,data:t}=(0,x.W)({variables:{categoryId:lf,productId:ec._id,i18nLangFilter:eu}});!l&&!e&&(null==t?void 0:t.relatedProducts)&&(lb=t.relatedProducts)}let lj=D?D({relatedProducts:lb,productData:Z}):void 0,lw=null==lj?void 0:null===(c=lj.items)||void 0===c?void 0:c.filter(e=>{var l;return((null==e?void 0:null===(l=e.inventory)||void 0===l?void 0:l.quantity)||0)>0}),ly=!!q,lN=async()=>{await eS({productTitle:(null==ec?void 0:ec.title)||"",variant:eB,price:e1,compareAtPrice:e2,quantity:eI,brand:er,categories:ln})},lS=(0,eL.Et)((null==e1?void 0:e1.amount)||"",null==e2?void 0:e2.amount,(null==e1?void 0:e1.locale)||(null==e2?void 0:e2.locale)||(0,B.sX)(eo)),lC=(null==eB?void 0:null===(v=eB.labels)||void 0===v?void 0:v.length)?null==eB?void 0:eB.labels:(null==Z?void 0:null===(f=Z.page)||void 0===f?void 0:null===(h=f.labels)||void 0===h?void 0:h.length)?null==Z?void 0:null===(b=Z.page)||void 0===b?void 0:b.labels:[],lR=!!(null==es?void 0:es.hideDiscountLabel),lI=e4?[{title:ed("Not available")}]:[...(lC||[]).slice(0,2).map(e=>({title:null==e?void 0:e.title,background:null==e?void 0:e.background})),...!lR&&lS?[{title:lS,background:"red"}]:[]];return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{seo:null==ec?void 0:ec.seo,routingConfig:et,defaultTitle:"".concat(null==ec?void 0:ec.title),defaultDescription:en,defaultSeoImage:ei}),(0,n.jsx)(N.Qb,{...lx}),(0,n.jsx)(p.W,{children:(0,n.jsx)(R,{breadcrumbs:e7,className:"my-5"})}),(0,n.jsx)(ee.$,{margin:"bottom",children:(0,n.jsx)(p.W,{children:(0,n.jsx)(el.H,{children:(0,n.jsx)(eF,{ref:e=>e8(null==e?void 0:e.ctaBtnRef),loading:ly,images:lv,title:(null==ec?void 0:ec.title)&&(0,n.jsx)("h1",{children:null==ec?void 0:ec.title}),subtitle:(null==ec?void 0:ec.subtitle)&&(0,n.jsx)("h2",{children:null==ec?void 0:ec.subtitle}),price:e1,compareAtPrice:e2,labels:{quantity:ed("Quantity"),compareAtPrice:ed("It was before"),cta:ed(e4?"Not available":"Add to cart"),of:ed("of"),increaseButton:ed("Increase"),decreaseButton:ed("Decrease")},quantityDisabled:e4,maxQuantity:(null==eB?void 0:null===(j=eB.inventory)||void 0===j?void 0:j.quantity)||1,quantity:eI,shipmentTimerMessage:eP&&(0,n.jsx)(eW.sU,{blocks:eP}),shipmentTimerTitle:eP?"".concat(ed("Shipping time")):void 0,additionalPriceWidget:(ex||ef)&&(0,n.jsxs)("div",{className:"mt-3 flex flex-col gap-4",children:[ex&&(0,n.jsx)(eX,{amount:null==e1?void 0:e1.amount}),ef&&(0,n.jsx)(eY,{amount:null==e1?void 0:e1.amount,placement:"product"})]}),productDetails:X({currentVariantDetails:lh,defaultVariant:eO,productData:Z,t:G||ed}),orderDetails:[...null==eh?void 0:eh.map(e=>{var l;return{icon:null==e?void 0:null===(l=e.icon)||void 0===l?void 0:l.iconName,text:(null==e?void 0:e.textRaw)&&(0,n.jsx)(eW.sU,{blocks:e.textRaw})}}),...(null==Q?void 0:Q({selectedVariant:eB}))||[]],onQuantityChange:eg?e=>ek(e):void 0,rating:lg,gallerySettings:{navigation:"thumbnails"===em?"thumbnails":"bullets",...P,photoSwipeOptions:{...(null==P?void 0:P.photoSwipeOptions)||{},closeTitle:"".concat(ed("Close")),zoomTitle:"".concat(ed("Zoom")),arrowPrevTitle:"".concat(ed("Previous photo")),arrowNextTitle:"".concat(ed("Next photo")),errorMsg:"".concat(ed("The photo could not be uploaded")),indexIndicatorSep:" ".concat(ed("of")," ")},labels:lI},onCtaClick:lN,ctaDisabled:e4||eC||eR,ctaLoading:eC||eR,variantSelectors:J({productOptions:e$,variants:(0,W.ZH)(eM),selectedVariant:eB,onUpdateVariant:e=>{let l=null==eM?void 0:eM.find(l=>{let t=null==l?void 0:l.colorHex;return Array.isArray(t)?eE()(t,e):t===e[0]}),t=(0,U.JU)(e$),n=null==l?void 0:l[t];eJ&&n&&eJ(e=>({...e,[t]:n}))},setVariantOptions:eJ,variantOptionsState:eG,ShortDescriptionComponent:()=>lu({shortDescriptionRaw:null==eB?void 0:eB.shortDescriptionRaw})}),...H})})})}),(0,n.jsx)(I.a,{sections:(null==ec?void 0:ec.sections)||[]}),k&&(0,n.jsx)(ee.$,{children:(0,n.jsx)(p.W,{children:(0,eT.G)(k)?k({productDetails:null==ec?void 0:ec.productDetails}):k})}),M&&Array.isArray(lw)&&lw.length>0&&(0,n.jsx)(ee.$,{background:"grey",margin:"top",children:(0,n.jsxs)(p.W,{children:[(0,n.jsx)(el.H.Heading1,{as:"h2",className:"text-center",children:(null==lj?void 0:lj.title)||ed("Related products")}),(0,n.jsx)(e0.p,{asSlider:!0,hasPreload:!1,hitProps:{hits:lw}})]})}),eb&&(null==ec?void 0:null===(w=ec.store)||void 0===w?void 0:w.id)&&(0,n.jsx)(ee.$,{ref:lp,children:(0,n.jsx)(p.W,{children:(0,n.jsx)(le,{productId:ec.store.id,trustCertificateUrl:null!=eN?eN:void 0,generalTermsOfUseUrl:null!=ey?ey:void 0,initialReviews:null!=ew?ew:void 0,additionalReviews:null!=ej?ej:void 0})})}),!e5&&!e4&&(0,n.jsx)(ez.Q,{open:e9,loading:ly,ctaLoading:eC||eR,ctaDisabled:eC||eR,onCtaClick:lN,labels:{cta:ed("Add to cart")}})]})};var lv=t(71957),lm=t.n(lv),lp=t(83987),lh=t(56411);let lg=e=>{let{ranges:l,t}=e;return l.includes("1-3")?l.includes("6+")?"":t("From age",l.includes("3-6")?{from:1,to:6}:{from:1,to:3}):l.includes("3-6")?l.includes("6+")?t("More age",{from:3}):t("From age",{from:3,to:6}):l.includes("6+")?t("More age",{from:6}):""};var lx=t(90161);let lf=e=>{var l,t;let{variants:i,selectedVariant:o,onUpdateVariant:r,ShortDescriptionComponent:a}=e,{t:s}=(0,d.$G)(),u=(null==o?void 0:o.colorHex)?[o.colorHex]:void 0,c=null!==(t=null==i?void 0:null===(l=i.filter(e=>!!(null==e?void 0:e.colorHex)))||void 0===l?void 0:l.map(e=>{var l;return{colorHex:[e.colorHex],isOutOfStock:!(null===(l=e.inventory)||void 0===l?void 0:l.quantity)}}))&&void 0!==t?t:[];if(!(null==c?void 0:c.length))return(0,n.jsx)(a,{});let v=c.filter(e=>e.isOutOfStock).map(e=>e.colorHex);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(eC.A,{children:[(0,n.jsxs)("span",{children:[s("Color"),": "]}),(0,n.jsx)(j.x,{color:"grey700",size:"textSm",weight:"semibold",as:"span",children:null==o?void 0:o.title})]}),(0,n.jsx)(lx.b,{maxColorsToDisplay:100,colors:c.map(e=>e.colorHex),disabledColors:v,activeColor:u,onSelect:r,size:"large",radii:"full"}),(0,n.jsx)(a,{})]})};function lb(){let e=(0,c._)(["\n query getProduct($id: ID!, $i18nLangFilter: StringFilter) {\n page: Product(id: $id) {\n _id\n seo {\n ...SanitySeo\n }\n title\n subtitle\n sections {\n ...Sections\n }\n labels {\n ...Label\n }\n categories {\n _id\n }\n relatedProducts {\n title\n products {\n ...Product\n }\n }\n productDetails {\n battery\n bluetooth\n boxMeasurements\n easyFeatWheels\n engine\n horn\n hoursAutonomy\n led\n maxWeightSupported\n microSd\n mp3\n mp4\n openableBonnet\n openableDoors\n optionals\n parentalControl\n productMeasurements\n radioFm\n recommendedAges\n reverseGear\n seats\n seatsMaterial\n securityBelt\n shockAbsorber\n softStart\n sounds\n speed\n terrains\n timeForFirstRecharge\n timeForNextRecharges\n usb\n vendor\n voltage\n volumeRegulation\n }\n store {\n id\n options {\n name\n values\n }\n variants {\n labels {\n ...Label\n }\n compareAtPrice\n gallery {\n ...SanityImage\n }\n id\n inventory {\n quantity\n management\n policy\n }\n option1\n option2\n option3\n price\n shortDescriptionRaw\n sku\n title\n }\n }\n }\n allColors: allColor(where: { i18nLang: $i18nLangFilter }) {\n _id\n name\n code\n }\n }\n"]);return lb=function(){return e},e}(0,v.Ps)(lb());let lj=e=>{var l;let{details:t,t:i}=e;return t?[[i("Battery"),null==t?void 0:t.battery],[i("Time for the first recharge"),null==t?void 0:t.timeForFirstRecharge],[i("MP4 Monitor"),null==t?void 0:t.mp4],[i("Bluetooth"),null==t?void 0:t.bluetooth],[i("MP3 Input"),null==t?void 0:t.mp3],[i("USB Input"),null==t?void 0:t.usb],[i("Micro SD Input"),null==t?void 0:t.microSd],[i("Soft start"),null==t?void 0:t.softStart],[i("Seat material"),null==t?void 0:t.seatsMaterial],[i("Opening doors"),null==t?void 0:t.openableDoors],[i("Accessories"),(null==t?void 0:t.optionals)?null==t?void 0:null===(l=t.optionals)||void 0===l?void 0:l.join(", "):void 0]].filter(e=>{let[,l]=e;return l}).map((e,l)=>{let[t,i]=e;return[(0,n.jsx)("div",{className:"font-bold",children:t},l),"boolean"==typeof i?"✔":i]}):[]},lw=e=>{var l;let{details:t,t:n}=e;return t?[{value:(null==t?void 0:t.hoursAutonomy)&&n("Hours of autonomy:",{value:null==t?void 0:t.hoursAutonomy})},{value:(null==t?void 0:t.timeForNextRecharges)&&n("Time for subsequent recharges after the first one:",{value:null==t?void 0:t.timeForNextRecharges})},{value:(null==t?void 0:t.voltage)&&n("Voltage:",{value:null==t?void 0:t.voltage})},{value:(null==t?void 0:t.volumeRegulation)&&n("With volume regulation")},{value:(null==t?void 0:t.sounds)&&n("Default sounds")},{value:(null==t?void 0:t.radioFm)&&n("FM radio")},{value:(null==t?void 0:t.led)&&n("LED headlights")},{value:(null==t?void 0:t.reverseGear)&&n("Reverse gear")},{value:(null==t?void 0:t.engine)&&n("Motor:",{value:null==t?void 0:t.engine})},{value:(null==t?void 0:t.speed)&&n("Speed:",{value:null==t?void 0:t.speed})},{value:(null==t?void 0:t.shockAbsorber)&&n("With shock absorbers")},{value:(null==t?void 0:null===(l=t.terrains)||void 0===l?void 0:l.length)&&n("Applicable terrain:",{value:t.terrains.join(", ")})},{value:(null==t?void 0:t.easyFeatWheels)&&n("Easy wheel assembly")},{value:(null==t?void 0:t.openableBonnet)&&n("Opening front hood")},{value:(null==t?void 0:t.productMeasurements)&&n("Product dimensions:",{value:null==t?void 0:t.productMeasurements})},{value:(null==t?void 0:t.boxMeasurements)&&n("Box dimensions:",{value:null==t?void 0:t.boxMeasurements})}].filter(e=>{let{value:l}=e;return l}):[]},ly=e=>{var l,t;let{productData:n,t:i}=e,o=null==n?void 0:null===(l=n.page)||void 0===l?void 0:l.productDetails;return o?[{label:i("Seats"),value:(null==o?void 0:o.seats)&&i("Seats",{count:o.seats})},{label:i("Recommended age"),value:(null==o?void 0:o.recommendedAges)&&lg({ranges:null==o?void 0:null===(t=o.recommendedAges)||void 0===t?void 0:t.flatMap(e=>e?[e]:[]),t:i})},{label:i("Maximum supported weight"),value:(null==o?void 0:o.maxWeightSupported)&&(0,V.Ps)(null==o?void 0:o.maxWeightSupported)},{label:i("With parental remote control"),value:i((null==o?void 0:o.parentalControl)&&o.parentalControl?"Yes":"No",{ns:G.V3})},{label:i("With seat belt"),value:(null==o?void 0:o.securityBelt)&&(0,V.Ps)(o.securityBelt)},{label:i("Product dimensions"),value:null==o?void 0:o.productMeasurements}].filter(e=>{let{value:l}=e;return l}):[]},lN=e=>{var l,t;let n=null==e?void 0:e.page,i=(0,U.JU)((null==n?void 0:null===(l=n.store)||void 0===l?void 0:l.options)||[]),o=(null==e?void 0:e.allColors)||[];return(0,W.ZH)((null==n?void 0:null===(t=n.store)||void 0===t?void 0:t.variants)||[]).map(e=>{let l=null==e?void 0:e[i],t=(0,U.tY)({colorName:l,allColors:o});return{...e,colorHex:t}})},lS=e=>{var l,t;let{relatedProducts:n,productData:i}=e;return{items:(0,lh.O)({products:n,allColors:null==i?void 0:i.allColors}),title:null==i?void 0:null===(t=i.page)||void 0===t?void 0:null===(l=t.relatedProducts)||void 0===l?void 0:l.title}},lC=e=>{let{onUpdateVariant:l,variants:t,selectedVariant:n,ShortDescriptionComponent:i}=e;return lf({onUpdateVariant:l,variants:t,selectedVariant:n,ShortDescriptionComponent:i})},lR=e=>{var l;let{routingConfig:t}=e,{locale:i}=(0,g.useRouter)(),{t:o}=(0,d.$G)([G.M6,G.V3]),a=(0,r.useMemo)(()=>(0,B.sX)(i),[i]),{data:s,loading:u,error:c}=(0,x.lZ)({variables:{id:t.documentId,i18nLangFilter:(0,m.ug)(i)}}),v=null==s?void 0:s.page,p=(null==v?void 0:null===(l=v.seo)||void 0===l?void 0:l.description)||o("metadata.pages.product.description",{title:null==v?void 0:v.title})||"";return(0,n.jsx)(lc,{productData:s,productLoading:u,productError:c,translate:o,seoDescription:p,routingConfig:t,getVariants:lN,Hit:lp._,getRelatedProducts:lS,renderVariantSelector:lC,renderProductInfoDetails:ly,productHeadProps:{afterCta:a===q.$b&&(0,n.jsx)(lm(),{src:"/images/free-shipping.svg",alt:o("Free shipping"),width:"140",height:"18",loader:e=>{let{src:l,width:t}=e;return"".concat(l,"?w=").concat(t)},className:"w-full sm:h-14 lg:h-auto"})},children:e=>{let{productDetails:l}=e;if(!l)return(0,n.jsx)(n.Fragment,{});let t=lj({details:l,t:o}),i=lw({details:l,t:o});return((null==t?void 0:t.length)>0||(null==i?void 0:i.length)>0)&&(0,n.jsxs)(E.U,{multiple:!0,children:[t.length>0&&(0,n.jsx)(O.Q,{expanded:!0,title:(0,n.jsx)(j.x,{color:"grey900",size:"displayXs",children:o("Main features")}),children:(0,n.jsx)(Z.i,{layout:"fixed",responsive:"scrollable",striped:!0,centered:!0,content:t})}),(null==i?void 0:i.length)>0&&(0,n.jsx)(O.Q,{title:(0,n.jsx)(j.x,{color:"grey900",size:"displayXs",children:o("Further details")}),expanded:!0,children:(0,n.jsx)(H,{items:i,className:"columns-1 md:columns-2 md:gap-12 lg:columns-3"})})]})}})};function lI(){let e=(0,c._)(["\n query getProductCategory($id: [ID!], $i18nLangFilter: StringFilter) {\n page: allProductCategory(\n where: { _id: { in: $id }, i18nLang: $i18nLangFilter }\n sort: { _updatedAt: DESC }\n limit: 1\n ) {\n id: _id\n seo {\n ...SanitySeo\n }\n title\n sections {\n ...Sections\n }\n }\n }\n"]);return lI=function(){return e},e}(0,v.Ps)(lI());let lk=e=>{var l;let{routingConfig:t}=e,{locale:i,asPath:o}=(0,g.useRouter)(),r=(0,m.ug)(i),{data:a}=(0,x.u4)({variables:{id:(0,h.A0)(t.documentId),i18nLangFilter:r}}),s=null==a?void 0:null===(l=a.page)||void 0===l?void 0:l[0],d=null==s?void 0:s.seo,u="".concat(null==s?void 0:s.title),c="".concat(null==s?void 0:s.title),v=(0,D.zU)(o),f=null==t?void 0:t.breadcrumbs,b=(0,_.aJ)({paginationIndex:v||1,sections:null==s?void 0:s.sections,targets:["productListing","productListingQuery"]});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(T,{seo:d,routingConfig:t,defaultTitle:u,defaultDescription:c}),(0,n.jsxs)(p.W,{className:"mb-5",children:[(0,n.jsx)(R,{breadcrumbs:f,className:"my-5"}),(0,n.jsx)(el.H.Heading1,{as:"h1",children:null==s?void 0:s.title})]}),(0,n.jsx)(I.a,{sections:b,margin:"bottom"})]})};var lP=!0,lF=e=>{let{routingConfig:l,initialSearchState:t}=e;return(0,n.jsx)($,{components:{Product:lR,ProductCategory:lk},routingConfig:l,initialSearchState:t})}},87771:function(e,l,t){"use strict";t.d(l,{j:function(){return a}});var n=t(39980),i=t(88640);t(2363);var o=t(2106),r=t(48733);let a=e=>{let{items:l,withDivider:t,size:a="sm",iconColor:s="primary600",className:d,...u}=e;if(!l.length)return(0,n.jsx)(n.Fragment,{});let{colGap:c,rowGap:v}={xs:{colGap:"py-1.5",rowGap:"gap-2"},sm:{colGap:"py-2.5",rowGap:"gap-3"}}[a];return(0,n.jsx)("ul",{className:(0,i.Z)("flex w-full flex-col",d),...u,children:l.map((e,l)=>{let{text:d,icon:u}=e;return(0,n.jsxs)("li",{className:(0,i.Z)("flex items-center first:pt-0",c,v,t?"border-b border-gray-200":"last:pb-0"),children:[u&&(0,n.jsx)(o.J,{name:u,color:s,size:a}),(0,n.jsx)(r.x,{color:"grey700",size:"textSm",children:d})]},"".concat(u).concat(l))})})}},20136:function(e,l,t){"use strict";t.d(l,{Q:function(){return v}});var n=t(39980),i=t(88640);t(2363);var o=t(48891),r=t(7590),a=t(12144),s=t(99547),d=t(50610),u=t(37842),c=t(48733);let v=e=>{let{open:l,product:t,total:v,loading:m,labels:p,className:h,ctaLoading:g,ctaDisabled:x,onCtaClick:f,...b}=e,j=(0,o.Z)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(s.n,{styles:"\n :root {\n --sticky-banner-h: 80px;\n\n @media (min-width: ".concat(r.lg,") {\n --sticky-banner-h: 100px;\n }\n }\n ")}),l&&(0,n.jsx)(s.n,{styles:":root { --sticky-banner-height: var(--sticky-banner-h); }"}),(0,n.jsx)("div",{...!j()&&{style:{display:"none"}},className:(0,i.Z)("fixed bottom-0 left-0 z-40 w-full transition-transform duration-300",{"translate-y-full":!l},{"translate-y-0":l},h),...b,children:(0,n.jsxs)("div",{className:(0,i.Z)("mx-auto flex h-[--sticky-banner-height] max-w-screen-xl","items-center rounded-tl rounded-tr bg-white px-2 py-4","transition-shadow duration-300",{"shadow-top-md":l}),children:[t&&(0,n.jsxs)("div",{className:"flex h-16 items-center gap-3",children:[(t.image||m)&&(0,n.jsx)("figure",{className:"bg-skeleton hidden h-16 w-16 shrink-0 overflow-hidden rounded lg:flex",children:m?(0,n.jsx)(u.O,{}):t.image}),(t.title||m)&&(0,n.jsx)("div",{className:"hidden lg:flex lg:items-center",children:(0,n.jsx)(c.x,{size:"textLg",color:"grey900",weight:"semibold",className:"max-w-xs truncate lg:max-w-xl [&>*]:truncate",children:m?(0,n.jsx)(u.O,{className:"w-96",variant:"text"}):t.title})}),(t.price||t.compareAtPrice||m)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("hr",{className:"hidden h-full border-r border-gray-300 lg:block"}),(0,n.jsx)(d.j,{price:t.price,compareAtPrice:t.compareAtPrice,loading:m,compareAtPriceLabel:(null==p?void 0:p.compareAtPrice)||"It was before"})]})]}),v&&!t&&(0,n.jsxs)("div",{className:"flex items-center gap-1",children:[(0,n.jsxs)(c.x,{size:"textLg",color:"grey900",children:[(null==p?void 0:p.total)||"Total",":"]}),(0,n.jsx)(d.j,{price:v,loading:m})]}),f&&(0,n.jsx)(a.zx,{type:"button",className:"ml-auto",size:"xl",onClick:f,fullWidth:!v&&!t,disabled:x||m||g,progress:m||g,children:(null==p?void 0:p.cta)||"Proceed"})]})})]})}},63569:function(){}},function(e){e.O(0,[658,774,888,179],function(){return e(e.s=30217)}),_N_E=e.O()}]);